//
//  UploadVar.m
//  RunningForTheMain
//
//  Created by Felipe Saint-Jean on 1/18/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "Celltower.h"
#import "CoreTelephony.h"

@implementation CellTower
-(id)initWithId:(int)cellid andLoc:(int)location andPow:(int)rxlevel{
	self = [super init];
	tid = cellid;
	loc=location;
	power = rxlevel;
	mnc = 0;
	freq = 0;
	p=nil;
	return self;

}
-(id)initWith:(struct CellInfo *)ci{
	self = [super init];
	mnc = ci->servingmnc;
	loc = ci->location;
	tid = ci->cellid;
	power = ci->rxlevel;
	freq = ci->freq;
	p = nil;
	return self;
}

-(void)setLocation:(GeoPoint *)pp{
	[pp retain];
	p = pp;
}

-(int)towerId{
	return tid;
}

-(int)towerLoc{
	return loc;
}

-(int) power {
	return power;
}
@end
